class CacheMap {
    map = new Map();
    prefix = '';
    constructor(prefix = '') {
        this.prefix = '';
    }
    getFullKey(key) {
        return `${this.prefix}|${key}`;
    }
    get(key) {
        return this.map.get(this.getFullKey());
    }
    set(key, value) {
        return this.map.set(this.getFullKey(), value);
    }
    remove(key) {
        return this.map.delete(this.getFullKey());
    }
}

let messageCacheMap = new CacheMap('message');

export {messageCacheMap};